<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateAlarmsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('alarms', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->string('station')->default('')->comment('台站');
            $table->string('source')->default('')->comment('来源');
            $table->string('type')->default('')->comment('类型');
            $table->integer('duration')->default('0')->comment('持续时间');
            $table->string('time')->default('')->comment('时间');
            $table->string('image')->default('')->comment('图片');
            $table->string('description')->default('')->comment('描述');
            $table->string('frequency')->default('')->comment('频率');
            $table->string('reason')->default('')->comment('原因');
            $table->string('status')->default('')->comment('状态');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('alarms');
    }
}
